package com.zw.yzk.kabu.data.network.entity;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanwei on 2017/5/16.
 */

public class ClassifyShopEntity extends Entity {

    @Expose
    @SerializedName("result")
    public Result result;

    public ClassifyShopEntity() {
        this.result = new Result();
        this.result.classifyList = new ArrayList<>();
        this.result.shopList = new ArrayList<>();
    }

    public static class Result {
        @Expose
        @SerializedName("product_subtype_list")
        public List<SubClassify> classifyList;
        @Expose
        @SerializedName("total_rows")
        public int totalShop;
        @Expose
        @SerializedName("shop_list")
        public List<Shop> shopList;
    }

    public static class SubClassify {
        @Expose
        @SerializedName("id")
        public int id;// 编号
        @Expose
        @SerializedName("content")
        public String content;// 商品二级分类内容
        @Expose
        @SerializedName("display_img_url")
        public String image; // 类型展示图
    }

    public static class Shop {
        @Expose
        @SerializedName("shop_id")
        public int shopId;// 店铺id
        @Expose
        @SerializedName("shop_name")
        public String shopName;// 店铺名称
        @Expose
        @SerializedName("shop_owner_id")
        public int ownerId; // 店主id
        @Expose
        @SerializedName("shop_background_url")
        public String image;// 店铺背景图片
    }
}
